package com.bsoft.controller.JSON;

import com.bsoft.Exception.CommonException;
import com.bsoft.service.HivPushService;
import com.bsoft.service.RegisterService;
import com.bsoft.utils.JSONUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * description: HIV省级上传
 */
@Controller
@RequestMapping(value = "JSON/HIV")
public class HivPushController {
    private static Logger logger = LoggerFactory.getLogger(HivPushController.class);

    @Autowired
    private HivPushService hivPushService;

    @Autowired
    private  ApplicationEventPublisher eventPublisher;

    /**
     * 新增HIV筛查 省平台
     */
    @RequestMapping(value = "hivPush_ProvincePt", produces = "application/json;charset=utf-8", method = RequestMethod.POST)
    @ResponseBody
    public String hivPush_ProvincePt(@RequestBody Map<String, Object> req) throws Exception {
        logger.info("新增HIV筛查:入参：" + req);
         hivPushService.hivPush_ProvincePt();
        logger.info("新增HIV筛查:出参" + "");
        return "";
    }





}
